package com.kili.file.facade.picture;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * PictureResult
 *
 * @author gordon
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PictureResult<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer status;

    private String message;

    private Long timestamp;

    private T data;

    public boolean isSuccess() {
        return status != null && status == 200;
    }

}